<?php MYTCONN(); ?>
<table width="100%"  border="0" cellspacing="1" cellpadding="4">
    <tr bgcolor="#E9ECCE">
        <td>Ref.</td>
        <td>Remessa</td>
        <td>Vers&atilde;o</td>
        <td>DB ID</td>
        <td>Valor encontrado </td>
        <td>Valor bloqueado </td>
        <td>Data</td>
        <td>Idx %</td>
        <td>Idx %</td>
        <td>Idx %</td>
        <td>Idx %</td>
        <td>Idx %</td>
        <td>Idx %</td>
        <td>Ac&ccedil;&atilde;o</td>
        <td>Observa&ccedil;&otilde;es</td>
        <td>sysUser</td>
    </tr>
<?php
$GET = $GLOBALS['MYT']->db_array("SELECT * FROM ex_matches WHERE blmtcFlag = 1  AND blmtcTime BETWEEN '{$_POST['TimeStart']} 00:00:00' AND '{$_POST['TimeEnd']} 23:59:59'");
$Qur = "Ordem Bloqueada;Desbloquear Ordem; Bloquear Cliente#1;2;3";
for ($v = 1; $v <= $GET[0]; $v++) {
    echo '<tr bgcolor="' . gridlines($v) . '">
    <td NOWRAP>';
    mn_field('button', 'ED', 'blmtcID', $GET[$v]['blmtcID'], '', '', '', '');
    echo '</td>
    <td NOWRAP>' . $GET[$v]['blmtcINVOICE'] . '</td>
    <td NOWRAP>' . $GET[$v]['DB_Version'] . '</td>
    <td NOWRAP>' . $GET[$v]['EXTERNAL_ID'] . '</td>
    <td NOWRAP>' . $GET[$v]['STR_MATCHED'] . '</td>
    <td NOWRAP>' . $GET[$v]['STR_STORED'] . '</td>
    <td NOWRAP>' . $GET[$v]['blmtcTime'] . '</td>
    <td NOWRAP>' . $GET[$v]['blmtcPrcCliSDN'] . '</td>
    <td NOWRAP>' . $GET[$v]['blmtcPrcBnfSDN'] . '</td>
    <td NOWRAP>' . $GET[$v]['blmtcPrcCliALT'] . '</td>
    <td NOWRAP>' . $GET[$v]['blmtcPrcBnfALT'] . '</td>
    <td NOWRAP>' . $GET[$v]['blmtcPrcCliADD'] . '</td>
    <td NOWRAP>' . $GET[$v]['blmtcPrcBnfADD'] . '</td>
    <td NOWRAP>';
    mn_field('hselect', 'ED', 'Status', $GET[$v]['blmtcFlag'], $Qur, '', '', '');
    echo '</td>
    <td NOWRAP>';
    mn_field('text', 'ED', 'Observations', $GET[$v]['blmtcObservations'], '100', '20', '', '');
    echo '</td>
    <td NOWRAP>' . $GET[$v]['blmtcUser'] . '</td>
  </tr>';
}
?>
</table>